package com.lvmama.pangolin.qnr.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lvmama.pangolin.entity.qnr.QNRTicket_Commodity;
import com.lvmama.pangolin.entity.spider.TicketProduct;
import com.lvmama.pangolin.mybatis.mapper.qnr.QNRTicketCommodityMapper;
import com.lvmama.pangolin.qnr.service.QNRTicketCommodityService;
@Transactional
@Service
public class QNRTicketCommodityServiceImpl implements QNRTicketCommodityService{
	/**  
	* @Title：TCTicketCommodityService.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:13:35  
	*/
	@Autowired
	private QNRTicketCommodityMapper qnrTicketCommodityMapper;
	@Override
	public List<QNRTicket_Commodity> getQNRTicket_CommodityListByTaskID(Map<String, Object> map) throws Exception {
		return qnrTicketCommodityMapper.getQNRTicket_CommodityListByTaskID(map);
	}
	public List<QNRTicket_Commodity> selectByProdId(String productId){
		return qnrTicketCommodityMapper.selectByProdId(productId);
	}
	@Override
	public int insert(TicketProduct record)
	{
		return qnrTicketCommodityMapper.insert(record);
	}
	@Override
	public int insertSelective(TicketProduct record)
	{
		return qnrTicketCommodityMapper.insertSelective(record);
	}
	@Override
	public List<TicketProduct> queryCommodityListByTaskID(Map<String, Object> map)
	{
		return qnrTicketCommodityMapper.queryCommodityListByTaskID(map);
	}
	@Override
	public int deleteBytaskAndProd(TicketProduct record)
	{
		return qnrTicketCommodityMapper.deleteBytaskAndProd(record);
	}
	

}
